﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_13_2021
{
    //存放用户的工号、姓名和部门信息
    class Staff
    {
        public string StaffName { get; set; }
        public int StaffNum { get; set; }
        public string StaffDep { get; set; }

        public  Staff() { 
        
        }

        public Staff(string StaffNam, int StaffNum, string StaffDe)
        {
            this.StaffName = StaffName;
            this.StaffNum = StaffNum;
            this.StaffDep = StaffDep;
        }

        public void StaffMsg()
        {
            Console.WriteLine("员工姓名：{0}，员工工号：{1}，员工部门：{2}",this.StaffName,this.StaffNum,this.StaffDep);
        }
    }
}
